﻿using System;

namespace BaseSyntax.Values.StringTest.Format
{
	public class BaseFromat:ITest
	{
		public void Test()
		{
			string[] str1 = new[] {"sss", "111"};
			//sss, 111
			Console.WriteLine(string.Format("{0}, {1}", str1));
			//a b
			Console.WriteLine(string.Format("{0}, {1}", "a", "b"));
			// System.String[], b
			Console.WriteLine(string.Format("{0}, {1}", str1, "b"));

			double price = 1.324343534232;
			Console.WriteLine(string.Format("{0, 20:c2}", price));
		}
	}
}